package com.ruoyi.db.pms.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 常见问题对象 pms_issue
 *
 * @author ruoyi
 * @date 2020-04-23
 */

@ApiModel("常见问题实体类")
@Data
@EqualsAndHashCode(callSuper=true)
public class PmsIssue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("问题ID")
    private Long id;

    @ApiModelProperty("问题标题")
    @Excel(name = "问题标题")
    @Size(min = 0, max = 255, message = "问题标题长度不能超过255个字符")
    private String question;

    @ApiModelProperty("问题答案")
    @Excel(name = "问题答案")
    @Size(min = 0, max = 255, message = "问题答案长度不能超过255个字符")
    private String answer;

    @ApiModelProperty("创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime addTime;

    @ApiModelProperty("逻辑删除")
    @Excel(name = "逻辑删除")
    private Integer deleted;

}
